<template>
  <a-card :bordered="false">
    <div class="table-page-search-wrappe">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目名称" class="form-item">
              <a-input placeholder="请输入项目名称" v-model="queryParam.projectName"></a-input>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="业主单位">
              <a-input placeholder="请输入业主单位" v-model="queryParam.ownerUnit"></a-input>
            </a-form-item>
          </a-col>
          
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <!-- table区域-begin -->
    <div>
      <a-table
        ref="table"
        size="middle"
        :scroll="{x:scrollX}"
        bordered
        :rowKey="(record,index) => index"
        :components="draggableComponent"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        class="j-table-force-nowrap"
        :customRow="customRow"
        @change="handleTableChange">
      </a-table>
    </div>
  </a-card>
</template>

<script>

import '@/assets/less/TableExpand.less'
import { JeecgBpmListMixin } from '@/mixins/JeecgBpmListMixin'
import { DisabledAuthFilterMixin } from '@/mixins/DisabledAuthFilterMixin'
import { mixinDevice } from '@/utils/mixin'
export default {
  name: 'ErpOmcPrepareProjectNameCheckForm',
  mixins: [JeecgBpmListMixin, mixinDevice, DisabledAuthFilterMixin],
  data() {
    return {
      description: '校重检验',
      // 表头
      columns: [],
      // 列设置
      settingColumns: [],
      // 列定义
      defColumns: [
        {
          title: '单据编号',
          align: 'center',
          dataIndex: 'finalNo',
          width: 124,
          ellipsis: true
        },
        {
          title: '项目名称',
          align: 'center',
          dataIndex: 'projectName',
          width: 124,
          ellipsis: true
        },
        
        {
          title: '业主单位',
          align: 'center',
          dataIndex: 'ownerUnit',
          width: 124,
          ellipsis: true
        }
      ],
      url: {
        list: '/api/erp/omc/project/erpOmcProject/queryProjectByNameAndOwnerUnit'
      }
    }
  },
  created() {
    // this.pcaData = new Area()
    // this.getSuperFieldList();
  },
  methods: {
    searchQuery() {
      let queryParam = {};
      Object.assign(queryParam, this.queryParam)
      this.loadData(1)
    },
    getDetail () {
      this.dataSource = []
      this.queryParam = {}
      this.loadData(1)
    }
  }
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
